A surface having many closely spaced lines or slits; used to produce optical spectra by mutual interference